home *** CD-ROM | disk | FTP | other *** search
- Path: stern.fokus.gmd.de!news
- From: Watson <sayegh@fokus.gmd.de>
- Newsgroups: comp.lang.c++
- Subject: Re: Formatting Disks in C++
- Date: Fri, 23 Feb 1996 14:13:11 +0100
- Organization: GMD FOKUS - Research Institute for Open Communication Systems
- Message-ID: <312DBD67.2C3B@fokus.gmd.de>
- References: <4gfvrf$drm@newsbf02.news.aol.com>
- NNTP-Posting-Host: pollux.fokus.gmd.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-2
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
-
- BillsFan10 wrote:
- >
- > How do you format a disk in C++?
- For DOS:
- system("format a:");
-
- For SCO Unix:
- system("dosformat /dev/fd...");
-
- For Linux:
- system("mformat a:");
-
- For all others:
- cout << "Hey user! Format a disk for me!" << endl;
-
- --
- * Greetinx from Watson (sayegh@fokus.gmd.de)
- http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
- signal(SIGSEGV,SIG_IGN);
-